# case001:
case_data_001 = [
    {
        "num": '001',  # 编号
        "title": "验证填写所有值-添加成功-成功提示",  # 用例标题
        "params": {
            "goods_name": "测试1",  # 商品标题
            "goods_sec_name": "副标题1",  # 商品副标题
            "goods_kind": 2,  # 商品类型：1=实物，2=虚拟
            "category_value": "测试2",  # 商品分类
            "sort_value": 1,  # 排序值
            "edu_discount_num": 2,  # 教育优惠：是=1，否=2
            "limit_table": 2,  # 教育优惠：不限购=1，限购=2
            "limit_num": 100,  # 限购数量
            "express_amount": 10,  # 快递运费
            "goods_tags": ['标签1', '标签2'],  # 商品标签值
            "specs_content": {'机身颜色': ["黑色", "白色"], '存储容量': ['64G', '128G']},  # 预置规格+具体规格
            "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},  # 商品图片
            "views": {"视频": "iPhone视频.mp4"},  # 商品视频
            "goods_description": "测试1的描述"  # 商品描述
        },
        "result": {"page_info": "保存成功！", "sql_expect": "1"}  # 预期值
    },
    {
        "num": "001",
        "title": "验证商品名称长度大于20也能添加成功",  # 用例标题
        "params": {
            "goods_name": "测试长长长长长长长长长长长长长长长长长长长",
            "goods_sec_name": "副标题3",
            "goods_kind": 2,
            "category_value": "测试2",
            "sort_value": 1,
            "edu_discount_num": 2,
            "limit_table": 2,
            "limit_num": 100,
            "express_amount": 10,
            "goods_tags": ['标签1', '标签2'],
            "specs_content": {'机身颜色': ["黑色", "白色"], '存储容量': ['64G', '128G']},
            "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},
            "views": {"视频": "iPhone视频.mp4"},
            "goods_description": "测试3的描述"
        },
        "result": {"page_info": "保存成功！", "sql_expect": "1"}
    }
]
# case002
case_data_002 = {
    "num": "002",
    "title": "验证不上传商品图片，必填提示",  # 用例标题
    "params": {
        "goods_name": "测试2",
        "goods_sec_name": "副标题2",
        "goods_kind": 2,
        "category_value": "测试2",
        "sort_value": 1,
        "edu_discount_num": 2,
        "limit_table": 2,
        "limit_num": 100,
        "express_amount": 10,
        "goods_tags": ['标签1', '标签2'],
        "specs_content": {'机身颜色': ["黑色", "白色"], '存储容量': ['64G', '128G']},
        "pages": {},
        "views": {"视频": "iPhone视频.mp4"},
        "goods_description": "测试2的描述"
    },
    "result": {"page_info": "商品图片不能为空", "sql_expect": "0"}
}
# case003:
case_data_003 = {
    "num": "003",  # 编号
    "title": "验证添加成功后，列表商品名称+状态=下架",  # 用例标题
    "params": {
        "goods_name": "测试4",  # 商品标题
        "goods_sec_name": "副标题4",  # 商品副标题
        "goods_kind": 2,  # 商品类型：1=实物，2=虚拟
        "category_value": "测试2",  # 商品分类
        "sort_value": 1,  # 排序值
        "edu_discount_num": 2,  # 教育优惠：是=1，否=2
        "limit_table": 2,  # 教育优惠：不限购=1，限购=2
        "limit_num": 100,  # 限购数量
        "express_amount": 10,  # 快递运费
        "goods_tags": ['标签1', '标签2'],  # 商品标签值
        "specs_content": {'机身颜色': ["黑色", "白色"], '存储容量': ['64G', '128G']},  # 预置规格+具体规格
        "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},  # 商品图片
        "views": {"视频": "iPhone视频.mp4"},  # 商品视频
        "goods_description": "测试4的描述"  # 商品描述
    },
    "result": {"list_name": "测试4", "list_status": "0"}  # 预期值   上架=1，下架=0
}
# case004:
case_data_004 = {
    "num": "004",  # 编号
    "title": "验证未添加SKU上架，上架失败",  # 用例标题
    "spu_params": {
        "goods_name": "无SKU商品单击添加",  # 商品标题
        "goods_sec_name": "",  # 商品副标题
        "goods_kind": "1",  # 商品类型：1=实物，2=虚拟
        "category_value": "测试2",  # 商品分类
        "sort_value": '1',  # 排序值
        "edu_discount_num": '1',  # 教育优惠：是=1，否=2
        "limit_table": '1',  # 教育优惠：不限购=1，限购=2
        "limit_num": '',  # 限购数量
        "express_amount": "0.00",  # 快递运费
        "goods_tags": [],  # 商品标签值
        "specs_content": {'机身颜色': ["黑色", "白色"], '存储容量': ['64G', '128G']},  # 预置规格+具体规格
        "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},  # 商品图片
        "views": {},  # 商品视频
        "goods_description": ""  # 商品描述
    },
    "status_params": {
        "goods_status_input": "上架"
    },
    "result": {
        "page_no_sku_status_info": "商品没有sku信息不能上架",
        "sql_off_status": "0"
    }  # 预期值   上架=1，下架=0
}
# case005:
case_data_005 = {
    "num": "005",  # 编号
    "title": "验证成功添加SKU",  # 用例标题
    "spu_params": {
        "goods_name": "成功添加sku",  # 商品标题
        "goods_sec_name": "成功添加sku",  # 商品副标题
        "goods_kind": "1",  # 商品类型：1=实物，2=虚拟
        "category_value": "测试2",  # 商品分类
        "sort_value": '1',  # 排序值
        "edu_discount_num": '1',  # 教育优惠：是=1，否=2
        "limit_table": '1',  # 教育优惠：不限购=1，限购=2
        "limit_num": '',  # 限购数量
        "express_amount": "0.00",  # 快递运费
        "goods_tags": [],  # 商品标签值
        "specs_content": {'机身颜色': ["黑色", "白色"], '存储容量': ['64G', '128G']},  # 预置规格+具体规格
        "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},  # 商品图片
        "views": {},  # 商品视频
        "goods_description": ""  # 商品描述
    },
    "sku_params": [
        {
            "size_num": '1',
            "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},
            "sku_code": "abc1",
            "sku_material_code": "nn1",
            "sku_sales_price": "100",
            "sku_original_price": "101",
            "sku_edu_off_price": "2",
            "sku_limit_num": "100"
        },
        {
            "size_num": '2',
            "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},
            "sku_code": "abc2",
            "sku_material_code": "nn2",
            "sku_sales_price": "200",
            "sku_original_price": "201",
            "sku_edu_off_price": "2",
            "sku_limit_num": "200"
        },
        {
            "size_num": '3',
            "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},
            "sku_code": "abc3",
            "sku_material_code": "nn3",
            "sku_sales_price": "300",
            "sku_original_price": "301",
            "sku_edu_off_price": "2",
            "sku_limit_num": "300"
        },
        {
            "size_num": '4',
            "pages": {"iPhone 15": ["1.jpg", "2.jpg"]},
            "sku_code": "abc4",
            "sku_material_code": "nn4",
            "sku_sales_price": "400",
            "sku_original_price": "401",
            "sku_edu_off_price": "2",
            "sku_limit_num": "400"
        }
    ],
    "result": {
        "page_sku_add_suc_info": "保存成功！",
        "sql_sku_amount": "4"
    }
}
